<?php
require_once('../phplib/include.inc.php');

class NavBar extends PageBase{
	public function Ini(){
		$this->assign('useradmin',Util::HaveRight_Or(1));
		$this->assign('databak',Util::HaveRight_Or(1));
		$this->productadim();
	}
	public function productadim(){
		$uid = intval(Auth::GetData('uid'));
		$db = getDb();
		$db->connect();
		$re = $db->fetch("SELECT * FROM right_t WHERE uid=$uid AND (rid = 1 or rid=2 OR rid>9)");
		$re = count($re) > 0;
		$this->assign('dataadmin',$re);		
	}
}
$navbar = new NavBar("file:".dirname(__FILE__)."/../home/navbar.tpl.html");
$navbar->display();
?>